import { Controller, Get, Post, Body, Patch } from '@midwayjs/core';
import { httpResult } from '../utils/http-result';

@Controller('/user')
export class UserController {
  @Get('/user')
  async user() {
    return httpResult.success({});
  }

  @Post('/user')
  async createUser(@Body() body) {
    return httpResult.success({ body }, '注册成功');
  }

  @Patch('/user')
  async updateUser() {}
}
